﻿CREATE PROCEDURE [dbo].[Designation_Insert]

@CreatedBy uniqueidentifier
, @ModifiedBy uniqueidentifier
, @Description varchar (64)
, @SystemDescription varchar (64)
AS
BEGIN
SET NOCOUNT ON

DECLARE @CreatedDate datetime
DECLARE @ModifiedDate datetime
DECLARE @Deleted bit
DECLARE @DesignationID uniqueidentifier
SET @CreatedDate = GETDATE()
SET @ModifiedDate = GETDATE()
SET @Deleted = 0
SET @DesignationID = NEWID()

INSERT INTO [dbo].[Designation] ([DesignationID]
, [CreatedDate]
, [CreatedBy]
, [ModifiedDate]
, [ModifiedBy]
, [Deleted]
, [Description]
, [SystemDescription]
)
VALUES (@DesignationID
, @CreatedDate
, @CreatedBy
, @ModifiedDate
, @ModifiedBy
, @Deleted
, @Description
, @SystemDescription
)

SELECT @DesignationID [DesignationID]
END
